<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   主题：[求助]怎样把不同的变量值的变量找出？  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
   MathJax.Hub.Config({elements: ["bbpress-forums"]});
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://cos.name/cn/topic/14023/",
                  host: "http://cos.name",
                  prePath: "http://cos.name",
                  scheme: "http",
                  pathBase: "http://cos.name/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466438277: Accept with keywords: (title(0.5):变量值,主题,变量,论坛, topn(0.133333333333):RSS订阅,软件应用,热门,帖子,作者,会员,没人,用户名,结果,变量值,新鲜事,日志,版权所有,高手,菜单,变量,记录,密码,总计,好人,集后,代码,主题,程序,普通,数据库,也就是说,论坛,主站,讨论区).-->
 </head>
 <body class="topic bbpress single single-topic postid-14023 single-author sidebar" onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    主题：[求助]怎样把不同的变量值的变量找出？
   </h1>
  </div>
  <div class="container" id="xmain">
   <div class="hfeed site" id="page">
    <header class="site-header" id="masthead" role="banner">
     <div id="cos-logo">
      <a href="http://cos.name/cn">
       <img src="http://cos.name/cn/wp-content/themes/COS-forest/images/headers/cos-logo.png"/>
      </a>
     </div>
     <div class="navbar" id="navbar">
      <nav class="navigation main-navigation" id="site-navigation" role="navigation">
       <h3 class="menu-toggle">
        菜单
       </h3>
       <div class="menu-%e8%8f%9c%e5%8d%951-container">
        <ul class="nav-menu" id="menu-%e8%8f%9c%e5%8d%951">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-407772" id="menu-item-407772">
          <a href="http://cos.name/cn/">
           论坛首页
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407773" id="menu-item-407773">
          <a href="http://cos.name/cn/forums/">
           讨论区
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407774" id="menu-item-407774">
          <a href="http://cos.name/cn/wp-login.php?action=register">
           注册
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407819" id="menu-item-407819">
          <a href="http://cos.name/">
           主站
          </a>
         </li>
        </ul>
       </div>
      </nav>
      <!-- #site-navigation -->
     </div>
     <!-- #navbar -->
    </header>
    <!-- #masthead -->
    <div class="site-main" id="main">
     <div class="content-area" id="primary">
      <div class="site-content" id="content" role="main">
       <article class="post-14023 topic type-topic status-publish hentry" id="post-14023">
        <header class="entry-header">
         <h1 class="entry-title">
          [求助]怎样把不同的变量值的变量找出？
         </h1>
        </header>
        <!-- .entry-header -->
        <div class="entry-content">
         <div id="bbpress-forums">
          <div class="bbp-breadcrumb">
           <p>
            <a class="bbp-breadcrumb-home" href="http://cos.name/cn/">
             COS论坛 | 统计之都
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <a class="bbp-breadcrumb-root" href="http://cos.name/cn/forums/">
             讨论区
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <a class="bbp-breadcrumb-forum" href="http://cos.name/cn/forum/software/">
             软件应用
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <a class="bbp-breadcrumb-forum" href="http://cos.name/cn/forum/software/sas/">
             SAS
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <span class="bbp-breadcrumb-current">
             [求助]怎样把不同的变量值的变量找出？
            </span>
           </p>
          </div>
          <div class="bbp-template-notice info">
           <p class="bbp-topic-description">
            该主题包含 9 条回复，5个帖子，最后由
            <a class="bbp-author-avatar" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
             <img src="http://sdn.geekzu.org/avatar/2c20c37353e88d73995a41334bed1f01?s=14&amp;d=monsterid&amp;r=g"/>
            </a>
            <a class="bbp-author-name" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
             jingju11
            </a>
            在
            <a href="http://cos.name/cn/topic/14023/#post-275853" title="回复：[求助]怎样把不同的变量值的变量找出？">
             6 年, 10 月 之前
            </a>
            更新。
           </p>
          </div>
          <div class="bbp-pagination">
           <div class="bbp-pagination-count">
            查看 10 个帖子 - 1 到 10（总计 10 个）
           </div>
           <div class="bbp-pagination-links">
           </div>
          </div>
          <ul class="forums bbp-replies" id="topic-14023-replies">
           <li class="bbp-header">
            <div class="bbp-reply-author">
             作者
            </div>
            <!-- .bbp-reply-author -->
            <div class="bbp-reply-content">
             帖子
            </div>
            <!-- .bbp-reply-content -->
           </li>
           <!-- .bbp-header -->
           <li class="bbp-body">
            <div class="bbp-reply-header" id="post-14023">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年2月20日 上午12:03
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-14023">
               1 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-14023 -->
            <div class="odd bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-1 user-id-88226 topic-author post-14023 topic type-topic status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/88226/" rel="nofollow" title="查看susanyue的档案">
               <img src="http://sdn.geekzu.org/avatar/e3110947fdcc5f1f9d6dab90d86fc6ab?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/88226/" rel="nofollow" title="查看susanyue的档案">
               susanyue
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               合并几个数据集后，发现同样的id因为有些变量的值不同而有多条记录，
              </p>
              <p>
               例如：
              </p>
              <p>
               data a;
              </p>
              <p>
               input id x1 x2 @@;
              </p>
              <p>
               cards;
              </p>
              <p>
               1 11 12
              </p>
              <p>
               2 21 22
              </p>
              <p>
               4 41 42
              </p>
              <p>
               4 411 422
              </p>
              <p>
               5 51 52
              </p>
              <p>
               ;
              </p>
              <p>
               data b; input id x3 @@;
              </p>
              <p>
               cards;
              </p>
              <p>
               1 13 3 33 4 43 5 53 5 533 5 5333
              </p>
              <p>
               ;
              </p>
              <p>
               run;
              </p>
              <p>
               data c;
              </p>
              <p>
               merge a b;
              </p>
              <p>
               by id;
              </p>
              <p>
               proc print;
              </p>
              <p>
               run;
              </p>
              <p>
               得到结果如下：
              </p>
              <p>
               obs   id     x1      x2      x3
              </p>
              <p>
               1       1     11     12      13
              </p>
              <p>
               2       2     21     22        .
              </p>
              <p>
               3       3      .         .      33
              </p>
              <p>
               4       4     41     42      43
              </p>
              <p>
               5       4    411    422    43
              </p>
              <p>
               6       5     51      52     53
              </p>
              <p>
               7       5     51      52     533
              </p>
              <p>
               8       5     51      52     5333
              </p>
              <p>
               怎样用SAS程序把上面红色部分的找出来，并且按照id号记录，因为数据库中变量有800个，也就是说要相同id号的记录，用proc compare进行每个变量比较的话，要比较800次，想问有没有高手可以写一个程序帮忙把同一记录号变量值不同的变量找出来呢？
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-263936">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年2月23日 上午4:10
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-263936">
               2 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-263936 -->
            <div class="even bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-2 user-id-88226 topic-author post-263936 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/88226/" rel="nofollow" title="查看susanyue的档案">
               <img src="http://sdn.geekzu.org/avatar/e3110947fdcc5f1f9d6dab90d86fc6ab?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/88226/" rel="nofollow" title="查看susanyue的档案">
               susanyue
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               没人回答我哦？
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-264047">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年2月24日 上午4:26
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-264047">
               3 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-264047 -->
            <div class="odd bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-3 user-id-72508 post-264047 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/72508/" rel="nofollow" title="查看jessicamin的档案">
               <img src="http://sdn.geekzu.org/avatar/ab7268a1535580bf0527760e345f3c23?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/72508/" rel="nofollow" title="查看jessicamin的档案">
               jessicamin
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               最后要找的是变量 比如 id=5 differ_var=x3
               <br/>
               还是要把这样的记录找出来 比如id=5 保留三条记录   id=1没有记录
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-274987">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年7月28日 上午11:24
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-274987">
               4 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-274987 -->
            <div class="even bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-4 user-id-101244 post-274987 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/101244/" rel="nofollow" title="查看我是一个好人的档案">
               <img src="http://sdn.geekzu.org/avatar/73c98c1ac90d51a31b38e9688457014b?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/101244/" rel="nofollow" title="查看我是一个好人的档案">
               我是一个好人
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               first.variable
              </p>
              <p>
               用这个？
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-275380">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年8月5日 下午7:57
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-275380">
               5 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-275380 -->
            <div class="odd bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-5 user-id-102677 post-275380 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
               <img src="http://sdn.geekzu.org/avatar/2c20c37353e88d73995a41334bed1f01?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
               jingju11
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               %macro FindDifVmcr;
              </p>
              <p>
               proc contents data=c;
               <br/>
               ods output variables=vs(where=(upcase(variable)^='ID'));
               <br/>
               run;
              </p>
              <p>
               proc format;
               <br/>
               value $vFmt
               <br/>
               ' '=' '
               <br/>
               other='D'
               <br/>
               ;
               <br/>
               run;
               <br/>
               proc sql noprint;
               <br/>
               select variable into :Vs separated by ' ' from vs;
               <br/>
               create table vvv as select distinct id from c;
               <br/>
               %let i=1;
               <br/>
               %do%while(%scan(&amp;Vs,&amp;i)^=%str( ));
               <br/>
               %let v=%scan(&amp;Vs,&amp;i);
               <br/>
               create table vvv_ as
               <br/>
               select distinct id,"&amp;v" as _&amp;v._ format=$vFmt.
               <br/>
               from
               <br/>
               (select id, &amp;v, (mean(&amp;v)=&amp;v) as x_ from c group by id) as aa
               <br/>
               where aa.x_=0
               <br/>
               order by id;
               <br/>
               create table vvv as
               <br/>
               select *
               <br/>
               from vvv as v left join vvv_
               <br/>
               on v.id=vvv_.id;
               <br/>
               %let i=%eval(&amp;i+1);
               <br/>
               %end;
               <br/>
               quit;
               <br/>
               %mend FindDifVmcr;
              </p>
              <p>
               %FindDifVmcr
               <br/>
               ;
              </p>
              <p>
               proc print;run;
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-275665">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年8月10日 下午3:34
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-275665">
               6 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-275665 -->
            <div class="even bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-6 user-id-90994 post-275665 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/90994/" rel="nofollow" title="查看xjuchenwei的档案">
               <img src="http://sdn.geekzu.org/avatar/854272d4d404f4b65372e7c85aac599e?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/90994/" rel="nofollow" title="查看xjuchenwei的档案">
               xjuchenwei
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               楼上。%是不是应该为  /*  呀。
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-275667">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年8月10日 下午3:59
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-275667">
               7 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-275667 -->
            <div class="odd bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-7 user-id-102677 post-275667 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
               <img src="http://sdn.geekzu.org/avatar/2c20c37353e88d73995a41334bed1f01?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
               jingju11
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               为什么？
               <br/>
               你无法运行以上的代码？
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-275728">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年8月11日 下午2:49
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-275728">
               8 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-275728 -->
            <div class="even bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-8 user-id-90994 post-275728 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/90994/" rel="nofollow" title="查看xjuchenwei的档案">
               <img src="http://sdn.geekzu.org/avatar/854272d4d404f4b65372e7c85aac599e?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/90994/" rel="nofollow" title="查看xjuchenwei的档案">
               xjuchenwei
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               这是日志的内容，就是不能运行呀
               <br/>
               NOTE: Copyright (c) 1999-2000 by SAS Institute Inc., Cary, NC, USA.
               <br/>
               NOTE: SAS (r) Proprietary Software Release 8.1 (TS1M0)
               <br/>
               Licensed to UNIVERSITY OF CALIFORNIA/BERKELEY CAMPUS, Site 0029107011.
               <br/>
               NOTE: This session is executing on the WIN_PRO  platform.
              </p>
              <p>
               NOTE: SAS initialization used:
               <br/>
               real time           2.09 seconds
               <br/>
               cpu time            0.85 seconds
              </p>
              <p>
               1    %macro FindDifVmcr;
               <br/>
               2
               <br/>
               3        proc contents data=c;
               <br/>
               4            ods output variables=vs(where=(upcase(variable)^='ID'));
               <br/>
               5        run;
               <br/>
               6
               <br/>
               7        proc format;
               <br/>
               8            value $vFmt
               <br/>
               9                        ' '=' '
               <br/>
               10                       other='D'
               <br/>
               11       ;
               <br/>
               12       run;
               <br/>
               13       proc sql noprint;
               <br/>
               14           select variable into :Vs separated by ' ' from vs;
               <br/>
               15           create table vvv as select distinct id from c;
               <br/>
               16           %let i=1;
               <br/>
               17           %do%while(%scan(&amp;Vs,&amp;i)^=%str( ));
               <br/>
               18               %let v=%scan(&amp;Vs,&amp;i);
               <br/>
               19               create table vvv_ as
               <br/>
               20                   select distinct id,"&amp;v" as _&amp;v._ format=$vFmt.
               <br/>
               21                       from
               <br/>
               22                           (select id, &amp;v, (mean(&amp;v)=&amp;v) as x_ from c group by id) as aa
              </p>
              <p>
               23                               where aa.x_=0
               <br/>
               24                           order by id;
               <br/>
               25               create table vvv as
               <br/>
               26                   select *
               <br/>
               27                       from vvv as v left join vvv_
               <br/>
               28                           on v.id=vvv_.id;
               <br/>
               29               %let i=%eval(&amp;i+1);
               <br/>
               30           %end;
               <br/>
               31       quit;
               <br/>
               32   %mend FindDifVmcr;
               <br/>
               33
               <br/>
               34   %FindDifVmcr
               <br/>
               ERROR: File WORK.C.DATA does not exist.
               <br/>
               NOTE: Statements not processed because of errors noted above.
               <br/>
               NOTE: PROCEDURE CONTENTS used:
               <br/>
               real time           0.64 seconds
               <br/>
               cpu time            0.00 seconds
              </p>
              <p>
               NOTE: The SAS System stopped processing this step because of errors.
               <br/>
               WARNING: Output 'variables' was not created.
              </p>
              <p>
               NOTE: Format $VFMT has been output.
               <br/>
               NOTE: PROCEDURE FORMAT used:
               <br/>
               real time           0.07 seconds
               <br/>
               cpu time            0.00 seconds
              </p>
              <p>
               ERROR: File WORK.VS.DATA does not exist.
               <br/>
               ERROR: File WORK.C.DATA does not exist.
               <br/>
               WARNING: Apparent symbolic reference VS not resolved.
               <br/>
               WARNING: Apparent symbolic reference VS not resolved.
               <br/>
               ERROR: File WORK.C.DATA does not exist.
               <br/>
               ERROR: File WORK.VVV.DATA does not exist.
               <br/>
               ERROR: File WORK.VVV_.DATA does not exist.
               <br/>
               WARNING: Apparent symbolic reference VS not resolved.
               <br/>
               NOTE: The SAS System stopped processing this step because of errors.
               <br/>
               NOTE: PROCEDURE SQL used:
               <br/>
               real time           0.75 seconds
               <br/>
               cpu time            0.03 seconds
              </p>
              <p>
               35   ;
               <br/>
               36
              </p>
              <p>
               37   proc print;run;
               <br/>
               ERROR: There is not a default input data set (_LAST_ is _NULL_).
              </p>
              <p>
               NOTE: The SAS System stopped processing this step because of errors.
               <br/>
               NOTE: PROCEDURE PRINT used:
               <br/>
               real time           0.01 seconds
               <br/>
               cpu time            0.01 seconds
               <br/>
               这是输出结果，对吗
              </p>
              <p>
               The SAS System        21:43 Sunday, August 11, 2009   3
              </p>
              <p>
               Obs    id
              </p>
              <p>
               1      1
               <br/>
               2      2
               <br/>
               3      3
               <br/>
               4      4
               <br/>
               5      5
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-275729">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年8月11日 下午2:51
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-275729">
               9 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-275729 -->
            <div class="odd bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-9 user-id-90994 post-275729 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/90994/" rel="nofollow" title="查看xjuchenwei的档案">
               <img src="http://sdn.geekzu.org/avatar/854272d4d404f4b65372e7c85aac599e?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/90994/" rel="nofollow" title="查看xjuchenwei的档案">
               xjuchenwei
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               这个才是结果，看看对不对。不好意思，前面说错了
              </p>
              <p>
               The SAS System        21:43 Sunday, August 11, 2009   1
              </p>
              <p>
               Obs    id     x1     x2     x3
              </p>
              <p>
               1      1     11     12      13
               <br/>
               2      2     21     22       .
               <br/>
               3      3      .      .      33
               <br/>
               4      4     41     42      43
               <br/>
               5      4    411    422      43
               <br/>
               6      5     51     52      53
               <br/>
               7      5     51     52     533
               <br/>
               8      5     51     52    5333
              </p>
              <p>
               The SAS System        21:43 Sunday, August 11, 2009   2
              </p>
              <p>
               The CONTENTS Procedure
              </p>
              <p>
               Data Set Name: WORK.C                               Observations:         8
               <br/>
               Member Type:   DATA                                 Variables:            4
               <br/>
               Engine:        V8                                   Indexes:              0
               <br/>
               Created:       21:49 Sunday, July 11, 1993          Observation Length:   32
               <br/>
               Last Modified: 21:49 Sunday, July 11, 1993          Deleted Observations: 0
               <br/>
               Protection:                                         Compressed:           NO
               <br/>
               Data Set Type:                                      Sorted:               NO
               <br/>
               Label:
              </p>
              <p>
               —–Engine/Host Dependent Information—–
              </p>
              <p>
               Data Set Page Size:         4096
               <br/>
               Number of Data Set Pages:   1
               <br/>
               First Data Page:            1
               <br/>
               Max Obs per Page:           126
               <br/>
               Obs in First Data Page:     8
               <br/>
               Number of Data Set Repairs: 0
               <br/>
               File Name:                  C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\SAS
               <br/>
               Temporary Files\_TD3984\c.sas7bdat
               <br/>
               Release Created:            8.0101M0
               <br/>
               Host Created:               WIN_PRO
              </p>
              <p>
               —–Alphabetic List of Variables and Attributes—–
              </p>
              <p>
               #    Variable    Type    Len    Pos
               <br/>
               儍儍儍儍儍儍儍儍儍儍儍儍儍儍儍儍儍?
               <br/>
               1    id          Num       8      0
               <br/>
               2    x1          Num       8      8
               <br/>
               3    x2          Num       8     16
               <br/>
               4    x3          Num       8     24
              </p>
              <p>
               The SAS System        21:43 Sunday, August 11, 2009   3
              </p>
              <p>
               Obs    id
              </p>
              <p>
               1      1
               <br/>
               2      2
               <br/>
               3      3
               <br/>
               4      4
               <br/>
               5      5
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-275853">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2009年8月13日 上午12:16
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/14023/#post-275853">
               10 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-275853 -->
            <div class="even bbp-parent-forum-998 bbp-parent-topic-14023 bbp-reply-position-10 user-id-102677 post-275853 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
               <img src="http://sdn.geekzu.org/avatar/2c20c37353e88d73995a41334bed1f01?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/102677/" rel="nofollow" title="查看jingju11的档案">
               jingju11
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               就这些？我也没有看到错误啊。贴全部啊
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
           </li>
           <!-- .bbp-body -->
           <li class="bbp-footer">
            <div class="bbp-reply-author">
             作者
            </div>
            <div class="bbp-reply-content">
             帖子
            </div>
            <!-- .bbp-reply-content -->
           </li>
           <!-- .bbp-footer -->
          </ul>
          <!-- #topic-14023-replies -->
          <div class="bbp-pagination">
           <div class="bbp-pagination-count">
            查看 10 个帖子 - 1 到 10（总计 10 个）
           </div>
           <div class="bbp-pagination-links">
           </div>
          </div>
          <div class="bbp-no-reply" id="no-reply-14023">
           <div class="bbp-template-notice">
            <p>
             您必须先登录才能回复该主题。
            </p>
           </div>
          </div>
         </div>
        </div>
        <!-- .entry-content -->
        <footer class="entry-meta">
        </footer>
        <!-- .entry-meta -->
       </article>
       <!-- #post -->
       <div class="comments-area" id="comments">
       </div>
       <!-- #comments -->
      </div>
      <!-- #content -->
     </div>
     <!-- #primary -->
     <div class="sidebar-container" id="tertiary" role="complementary">
      <div class="sidebar-inner">
       <div class="widget-area">
        <aside class="widget bbp_widget_login" id="bbp_login_widget-2">
         <h3 class="widget-title">
          登录
         </h3>
         <form action="http://cos.name/cn/wp-login.php" class="bbp-login-form" method="post">
          <fieldset>
           <legend>
            登录
           </legend>
           <div class="bbp-username">
            <label for="user_login">
             用户名:
            </label>
           </div>
           <div class="bbp-password">
            <label for="user_pass">
             密码:
            </label>
           </div>
           <div class="bbp-remember-me">
            <label for="rememberme">
             记住用户名
            </label>
           </div>
           <div class="bbp-submit-wrapper">
            <button class="button submit user-submit" id="user-submit" name="user-submit" tabindex="104" type="submit">
             登录
            </button>
           </div>
           <div class="bbp-login-links">
            <a class="bbp-register-link" href="http://cos.name/cn/wp-login.php?action=register" title="注册">
             注册
            </a>
            <a class="bbp-lostpass-link" href="http://cos.name/cn/wp-login.php?action=lostpassword" title="忘记密码">
             忘记密码
            </a>
           </div>
          </fieldset>
         </form>
        </aside>
        <aside class="widget widget_text" id="text-7">
         <h3 class="widget-title">
          搜索
         </h3>
         <div class="textwidget">
          <form action="http://www.google.com/search" id="bbp-search-form" method="get" onsubmit="Gsitesearch(this)" role="search">
           <div>
           </div>
          </form>
          <form id="bbp-search-form-baidu" onsubmit="g(this)" role="search">
           <div>
           </div>
          </form>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-2">
         <h3 class="widget-title">
          新鲜事
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <a href="http://cos.name/cn/topics/">
             最新帖子
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/popular/">
             最热门主题
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/no-replies/">
             消灭零回复
            </a>
           </li>
          </ul>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-3">
         <h3 class="widget-title">
          RSS订阅
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/topics/feed/">
             所有主题
            </a>
           </li>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/forums/feed/">
             所有帖子
            </a>
           </li>
          </ul>
         </div>
        </aside>
       </div>
       <!-- .widget-area -->
      </div>
      <!-- .sidebar-inner -->
     </div>
     <!-- #tertiary -->
    </div>
    <!-- #main -->
    <footer class="site-footer" id="colophon" role="contentinfo">
     <div class="site-info">
      版权所有 © 2014 统计之都 | 由
      <a href="http://wordpress.org/">
       WordPress
      </a>
      构建 | 主题修改自
      <a href="http://wordpress.org/themes/twentythirteen">
       Twenty Thirteen
      </a>
     </div>
     <!-- .site-info -->
    </footer>
    <!-- #colophon -->
   </div>
   <!-- #page -->
  </div>
 </body>
</html>